<?php
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package  		Module_User
 * @version 		$Id: login-header.html.php 4774 2012-09-26 14:47:07Z Miguel_Espinoza $
 */
defined('PHPFOX') or exit('NO DICE!');
?>
{if Phpfox::getLib('module')->getFullControllerName() != 'user.login'}
{plugin call='user.template.login_header_set_var'}
<div id="header_menu_login" class="header">
    {if isset($bCustomLogin)}
    <div id="header_menu_login_holder">

        {/if}
        <form method="post" action="{url link='user.login'}">
            <div class="header_menu_login_left">
                {*<div class="header_menu_login_label">{if Phpfox::getParam('user.login_type') == 'user_name'}{phrase var='user.user_name'}{elseif Phpfox::getParam('user.login_type') == 'email'}{phrase var='user.email'}{else}{phrase var='user.login'}{/if}:</div>*}
                <div><input type="text" name="val[login]" value="" class="header_menu_login_input" tabindex="1" placeholder="Email" /></div>
                <div class="header_menu_login_sub">
                    <label class="checkbox" style="color: #333333;"><input type="checkbox" name="val[remember_me]" value="" checked="checked" tabindex="4" /> {phrase var='user.keep_me_logged_in'}</label>
                </div>
            </div>
            <div class="header_menu_login_right">
                {*<div class="header_menu_login_label">{phrase var='user.password'}:</div>*}
                <div><input type="password" name="val[password]" value="" class="header_menu_login_input" tabindex="2" placeholder="Password" /></div>
                <div class="header_menu_login_sub">
                    <a href="{url link='user.password.request'}" style="color: #3B5998">{phrase var='user.forgot_your_password'}</a>
                </div>
            </div>
            <div class="header_menu_login_button" style="top: 10px;">
                <input type="submit" value="{phrase var='user.login_singular'}" tabindex="3" class="btn btn-primary sign-in-btn" />
            </div>
        </form>
    </div>

    {if isset($bCustomLogin)}
</div>									
<div id="header_menu_login_custom">
    {if !Phpfox::getParam('user.force_user_to_upload_on_sign_up')}
    {phrase var='user.or_login_with'}:										
    {if Phpfox::isModule('facebook') && Phpfox::getParam('facebook.enable_facebook_connect')}
    <div class="header_login_block">
        <fb:login-button scope="publish_stream,email,user_birthday" v="2"></fb:login-button>
    </div>
    {/if}
    {if Phpfox::isModule('janrain') && Phpfox::getParam('janrain.enable_janrain_login')}
    <div class="header_login_block">
        <a class="rpxnow" onclick="return false;" href="{$sJanrainUrl}">{img theme='layout/janrain-icons.png'}</a>
    </div>
    {/if}
    {/if}
    {plugin call='user.template.login_header_custom'}
</div>
{/if}
</div>								
{/if}